<template>

</template>
<script lang="ts" setup>
    import {ref} from 'vue'
    import { onLoad } from '@dcloudio/uni-app'
    import {apiGetTaskByShare} from '@/api/task'
    import {TaskList,Task} from '@/types/task'

    const tasklist = ref<TaskList>()
    onLoad((options:any) => {
        const share = options.share_code
        if(share){
            apiGetTaskByShare({
                share_code: share
            }).then(res=>{
                tasklist.value = res
                console.log(res)
            })
        }
    })
</script>